$.zhh.events.on("/basedata/syslog/record/", function(space, initial, extras) {
	
	var v = {};

	v.format = {
		requestUrl: function(value) {
			return value && value.replace(/https?\:\/\/[^\/]+/, "");
		},
		returnCode: function(value) {
			return value && value == "SUCCESS" ? '<span class="check-mark">√</span>' : "";
		},
		attachment: function(value) {
			return value && value.attachment ? '<a target="_blank" href="' + value.attachment.url + '">' + value.attachment.name + '</span>' : "";
		}
	};

	space.xui(v);
});